<?php use_stylesheets_for_form($form1) ?>
<?php use_javascripts_for_form($form1) ?>

<form action="<?php echo url_for('password_answer/'.($form1->getObject()->isNew() ? 'create' : 'update').(!$form1->getObject()->isNew() ? '?id='.$form1->getObject()->getId() : '')) ?>" method="post" <?php $form1->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form1->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; 
?>
        <table>
          <?php echo $form1; ?>
          <?php echo $form2; ?>
          <tr>
            <td colspan="2">
              <?php echo $form1->renderHiddenFields(false) ?>
              <?php echo $form2->renderHiddenFields(false) ?>
              &nbsp;<a href="<?php echo url_for('password_answer/index') ?>">Back to list</a>
              <input type="submit" value="Save" />
            </td>
          </tr>
      </table>
</form>